<%@ page contentType="text/html; charset=UTF-8" language="java"%>
<%@ include file="/commons/pages/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div class="subtitle">
  <h3>编辑信息</h3>
</div>
<s:form action="BaseUnitInfo!save.action" method="post" name="form">
  <s:token />
  <input type="hidden" name="model.id" value="<s:property value='model.id'/>"/>
  <table width="100%" border="0" cellpadding="5" cellspacing="1" class="tbl_list">
    <tr>
      <th width="16%" align="right"><font color="red">*</font>单元名称：</th>
      <td width="84%"><input name="model.unit_name" type="text" class="webinput" size="25" dataType="Integer" msg="请用数字填写单元号" value="<s:property value='model.unit_name'/>"/> 单元</td>
    </tr>
    <tr>
      <th width="16%" align="right"><font color="red">*</font>所属楼栋：</th>
      <td width="84%">
      	 <select name="model.build_id" dataType="Require" msg="请填写选择">
      		<option value="">--==请选择==--</option>
      		<s:iterator value="buidList" var="cur">
      			 <option value="<s:property value="#cur.ID"/>" <s:if test="model.build_id==#cur.ID">selected="selected"</s:if>><s:property value="#cur.B_NAME"/></option>
      		</s:iterator>
      	</select>
	  </td>
    </tr>
    <tr>
      <th width="16%" align="right">备注：</th>
      <td width="84%"><textarea id="textarea" name="model.demo" cols="60" rows="8"><s:property value='model.demo'/></textarea></td>
    </tr>
    <tr>
      <th>&nbsp;</th>
      <td><input type="submit" class="websub" value="提 交" />
        <input type="button" class="websub" onclick="history.back();" value="返 回" /></td>
    </tr>
  </table>
</s:form>
<script src='/commons/scripts/validator.js'></script> 
<script type="text/javascript">
$j(document).ready(function(){
	form.onsubmit = function () {
		return Validator.Validate(this, 3);
	}
});
</script>
</body>
</html>
